#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPropertyAnimation>
namespace Ui {
class btForm;
}

class btForm : public QWidget
{
    Q_OBJECT

public:
    explicit btForm(QWidget *parent = nullptr);
    ~btForm();
    // 设置图标 ⽂字 id
    void seticon(QString btIcon,QString btText,int mid);
    void clearBg();
    // 获取id
    int getId();
    void showAnimal();
    void stopAnimal();
protected:
// ⿏标点击事件
    virtual void mousePressEvent(QMouseEvent *event);
signals:
    void btClick(int id);
private:
    // 按钮id：该按钮对应的page⻚
    int id = 0;
    Ui::btForm *ui;
    QPropertyAnimation *line1Animal;
    QPropertyAnimation *line2Animal;
    QPropertyAnimation *line3Animal;
    QPropertyAnimation *line4Animal;
};

#endif // BTFORM_H
